import { ref } from 'vue'

function useCompRef<T extends abstract new (...args: any) => any>(comp: T) {
    return ref<InstanceType<T>>()
}

// function useCompRef2<T extends new (...args: any) => any>(comp: T) {
//     return ref<InstanceType<T>>()
// }

// export { useCompRef2 }

export default useCompRef
